package historymanager.model;

/**
 * Object-Model-Class for MeasurePointListCO
 * This class ist used for deserialisation in the
 * client-server-communication
 * 
 * @author Thomas Aulich
 * @version 1.0
 *
 */

public class MeasurePointListCO {
	String id;
	String name;
	String[] measurePointIds;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String[] getMeasurePointIds() {
		return measurePointIds;
	}

	public void setMeasurePointIds(String[] measurePointIds) {
		this.measurePointIds = measurePointIds;
	}
	
	public int getMeasurePointIdsSize() {
		return measurePointIds.length;
	}
	
	public String getMeasurePointId(int i){
		if (i<=this.getMeasurePointIdsSize()) {
			return measurePointIds[i];
		} else {
			return null;
		}
	}
}
